﻿using DSGL_Ebsinuness.Models;
using Microsoft.EntityFrameworkCore;

namespace DSGL_Ebsinuness.Infrastructures
{
    /// <summary>
    /// 电商系统上下文
    /// </summary>
    public class EbsinuessDbContext : DbContext
    {
        public EbsinuessDbContext(DbContextOptions options) : base(options)
        {

        }
        /// <summary>
        /// 订单
        /// </summary>
        public DbSet<Order> Order { get; set; }

        /// <summary>
        /// 支付
        /// </summary>
        public DbSet<Payment> Payment { get; set; }
        /// <summary>
        /// 商品
        /// </summary>
        public DbSet<Product> Product { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<User> User { get; set; }



    }
}
